package com.tao.mytestgreendao.dbm;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.util.Log;

import com.tao.mytestgreendao.gen.DaoMaster;
import com.tao.mytestgreendao.gen.DaoSession;
import com.tao.mytestgreendao.gen.FundsinfoBeanDao;
import com.tao.mytestgreendao.gen.TeacherEntityDao;
import com.tao.mytestgreendao.gen.UserEntityDao;

import org.greenrobot.greendao.AbstractDaoMaster;
import org.greenrobot.greendao.database.Database;
import org.greenrobot.greendao.database.DatabaseOpenHelper;
import org.greenrobot.greendao.database.StandardDatabase;
import org.greenrobot.greendao.identityscope.IdentityScopeType;

/**
 * reate by tao on{DATE}
 */
public class UserDbMaster extends DaoMaster {
    public static final int SCHEMA_VERSION = 7;

 
    public UserDbMaster(Database db) {
        super(db );
    }

    /** Creates underlying database table using DAOs. */
    public static void createAllTables(Database db, boolean ifNotExists) {
        FundsinfoBeanDao.createTable(db, ifNotExists);
        TeacherEntityDao.createTable(db, ifNotExists);
        UserEntityDao.createTable(db, ifNotExists);
    }

    /** Drops underlying database table using DAOs. */
    public static void dropAllTables(Database db, boolean ifExists) {
        FundsinfoBeanDao.dropTable(db, ifExists);
        TeacherEntityDao.dropTable(db, ifExists);
        UserEntityDao.dropTable(db, ifExists);
    }
  

}
